package cn.stylefeng.guns.modular.gridsystem.entity;

import cn.stylefeng.guns.core.pojo.base.entity.BaseEntity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Date;

/**
 * 设备表
 *
 * @author ssy
 * @date 2021/09/14 11:47
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("biz_device")
public class BizDevice extends BaseEntity {

    /**
     * id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 产品型号
     */
    @TableField("product_model")
    private String productModel;

    /**
     * 产品厂商
     */
    @TableField("product_vendor")
    private String productVendor;

    /**
     * 所属站点
     */
    @TableField("station_id")
    private Integer stationId;

    /**
     * 设备名称
     */
    @TableField("device_name")
    private String deviceName;

    /**
     * 生产日期
     */
    @TableField("created_at")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date createdAt;

    @TableField("industry_id")
    private Integer industryId;

    @TableField("file_name")
    private String fileName;

    /**
     * 设备反面图
     */
    @TableField("back_file_name")
    private String backFileName;

    /**
     * 设备铭牌图
     */
    @TableField("nameplate_file_name")
    private String nameplateFileName;


    /**
     * 首页内容标题
     */
    @TableField("title_file_id")
    private Long titleFileId;

}
